package com.bee.beemanage.api.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bee.beemanage.api.entity.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author 陈国松
 * @since 2022-10-09
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {

    Page<SysRole> recycleSearch(Page<SysRole> page, @Param("sysRole") SysRole sysRole
            ,@Param("startTime") LocalDateTime startTime,@Param("endTime") LocalDateTime endTime);

    boolean clear();

    boolean recover(List<String> ids);
}
